package com.atguigu.spring.beans.cycle;

import com.sun.org.apache.xml.internal.security.Init;

public class Car {

	public Car() {
		System.out.println("car's constructor...");
	}
	private String brand;
	
	public void setBrand(String brand) {
		System.out.println("setBrand..");
		this.brand = brand;
	}
	public void init2() {
		System.out.println("init...");
	}
	public void destroy() {
		System.out.println("destroy...");
	}
	/* （非 Javadoc）
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Car [brand=" + brand + "]";
	}
   
}
